public class test2 extends Thread{

    public test2(Pipe p){

    }
    /*
    *	test2: tests multiple threads reading and writing at the same time.
    *		   Then lastly is closes the pipe so as to not wait forever.
    *
    */	
    public static void main(String [] args){
    	Pipe p = new Pipe();
    	System.out.println("Test2: Multiple Writers write, 2 readers read, then pipe is closed");
        (new tester(p,1)).start();
        (new tester(p,1)).start();
        (new tester(p,1)).start();
        (new tester(p,2)).start();
        (new tester(p,2)).start();
        (new tester(p,1)).start();
        (new tester(p,2)).start();
        (new tester(p,3)).start();
    
	}
}